<?php
	require_once('WKPDF.php');
	//$str = '<div id="main" class="board"><div class="item ui-draggable" id="div-0" style="left: 456px; top: 128px; z-index: 0;" state="silent"><img src="http://localhost/diagramconcept/images/email.png" class="img-item icon" id="img-0" style="max-width: 369px; max-height: 369px;"><img src="http://localhost/diagramconcept/images/sq.png" class="sq" id="sqbl-0" style="left: 0px; top: 0px; display: none;"><img src="http://localhost/diagramconcept/images/sq.png" class="sq ui-draggable" id="sqtr-0" style="left: 368px; top: -92px; display: none;"></div></div>';
	$str = '<img src="http://localhost/diagramconcept/images/ballon.png" class="sq" id="base-0" style="left: 0px; top: 0px;">';
	$pdf = new WKPDF();
	/*
	$html = $_POST['html'];
	$filename = $_POST['filename'];
	*/
	$filename = "default";
	$pdf->set_html($str);
	$pdf->render();
	$pdf->output('D',$filename.'.pdf');
?>
